<?xml version="1.0" encoding="UTF-8"?>
<bpmn2:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" id="_0yVNEMLBEeKbkYsGzbdBqg" targetNamespace="http://camunda.org/schema/1.0/bpmn" exporter="Camunda Modeler" exporterVersion="4.8.0" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd">
  <bpmn2:process id="TestCallActivitiesWithReferences" name="TestCallActivitiesWithReferences" isExecutable="true">
    <bpmn2:startEvent id="StartEvent_1" name="Start Event">
      <bpmn2:outgoing>SequenceFlow_1</bpmn2:outgoing>
    </bpmn2:startEvent>
    <bpmn2:callActivity id="latest_reference_1" name="latest" calledElement="process">
      <bpmn2:incoming>SequenceFlow_1</bpmn2:incoming>
      <bpmn2:outgoing>Flow_1p4xoty</bpmn2:outgoing>
    </bpmn2:callActivity>
    <bpmn2:sequenceFlow id="SequenceFlow_1" sourceRef="StartEvent_1" targetRef="latest_reference_1" />
    <bpmn2:sequenceFlow id="Flow_1p4xoty" sourceRef="latest_reference_1" targetRef="version_1" />
    <bpmn2:callActivity id="version_1" name="version 1" calledElement="process" camunda:calledElementBinding="version" camunda:calledElementVersion="1">
      <bpmn2:incoming>Flow_1p4xoty</bpmn2:incoming>
      <bpmn2:outgoing>Flow_16j0n28</bpmn2:outgoing>
    </bpmn2:callActivity>
    <bpmn2:sequenceFlow id="Flow_16j0n28" sourceRef="version_1" targetRef="deployment_1" />
    <bpmn2:callActivity id="deployment_1" name="deployment" calledElement="process" camunda:calledElementBinding="deployment">
      <bpmn2:incoming>Flow_16j0n28</bpmn2:incoming>
      <bpmn2:outgoing>Flow_1fkm59u</bpmn2:outgoing>
    </bpmn2:callActivity>
    <bpmn2:callActivity id="version_tag_reference_1" name="versionTag" calledElement="failingProcess" camunda:calledElementBinding="versionTag" camunda:calledElementVersionTag="ver_tag_2">
      <bpmn2:incoming>Flow_1fkm59u</bpmn2:incoming>
      <bpmn2:outgoing>Flow_1sz364i</bpmn2:outgoing>
    </bpmn2:callActivity>
    <bpmn2:sequenceFlow id="Flow_1fkm59u" sourceRef="deployment_1" targetRef="version_tag_reference_1" />
    <bpmn2:sequenceFlow id="Flow_1sz364i" sourceRef="version_tag_reference_1" targetRef="no_reference_1" />
    <bpmn2:callActivity id="no_reference_1" name="no reference" calledElement="">
      <bpmn2:incoming>Flow_1sz364i</bpmn2:incoming>
      <bpmn2:outgoing>Flow_1xkm9mi</bpmn2:outgoing>
    </bpmn2:callActivity>
    <bpmn2:sequenceFlow id="Flow_1xkm9mi" sourceRef="no_reference_1" targetRef="incorrect_reference_1" />
    <bpmn2:callActivity id="incorrect_reference_1" name="incorrect reference" calledElement="thisreferencedoesnotexisthopefully">
      <bpmn2:incoming>Flow_1xkm9mi</bpmn2:incoming>
      <bpmn2:outgoing>Flow_1dtsr3t</bpmn2:outgoing>
    </bpmn2:callActivity>
    <bpmn2:callActivity id="cmmn_reference_1" name="cmmn reference" camunda:caseRef="CasePlanModel_1">
      <bpmn2:incoming>Flow_0d9nvtl</bpmn2:incoming>
      <bpmn2:outgoing>Flow_1gizwns</bpmn2:outgoing>
    </bpmn2:callActivity>
    <bpmn2:callActivity id="dynamic_reference_1" name="dynamic reference" calledElement="${resolvedAtRuntime}">
      <bpmn2:incoming>Flow_1dtsr3t</bpmn2:incoming>
      <bpmn2:outgoing>Flow_0d9nvtl</bpmn2:outgoing>
    </bpmn2:callActivity>
    <bpmn2:sequenceFlow id="Flow_1dtsr3t" sourceRef="incorrect_reference_1" targetRef="dynamic_reference_1" />
    <bpmn2:sequenceFlow id="Flow_0d9nvtl" sourceRef="dynamic_reference_1" targetRef="cmmn_reference_1" />
    <bpmn2:sequenceFlow id="Flow_1gizwns" sourceRef="cmmn_reference_1" targetRef="tenant_reference_1" />
    <bpmn2:callActivity id="tenant_reference_1" name="tenant" calledElement="processOne" camunda:calledElementTenantId="someTenant">
      <bpmn2:incoming>Flow_1gizwns</bpmn2:incoming>
      <bpmn2:outgoing>Flow_10tdxwm</bpmn2:outgoing>
    </bpmn2:callActivity>
    <bpmn2:sequenceFlow id="Flow_10tdxwm" sourceRef="tenant_reference_1" targetRef="non_existing_tenant_reference_1" />
    <bpmn2:callActivity id="non_existing_tenant_reference_1" name="non-existing tenant" calledElement="processOne" camunda:calledElementTenantId="nonExistingTenant">
      <bpmn2:incoming>Flow_10tdxwm</bpmn2:incoming>
      <bpmn2:outgoing>Flow_10nemiq</bpmn2:outgoing>
    </bpmn2:callActivity>
    <bpmn2:sequenceFlow id="Flow_10nemiq" sourceRef="non_existing_tenant_reference_1" targetRef="missing-tenant-reference-1" />
    <bpmn2:callActivity id="missing-tenant-reference-1" name="missing tenant" calledElement="processOne">
      <bpmn2:incoming>Flow_10nemiq</bpmn2:incoming>
      <bpmn2:outgoing>Flow_0bkhhzr</bpmn2:outgoing>
    </bpmn2:callActivity>
    <bpmn2:endEvent id="Event_1kqdnnx">
      <bpmn2:incoming>Flow_0bkhhzr</bpmn2:incoming>
    </bpmn2:endEvent>
    <bpmn2:sequenceFlow id="Flow_0bkhhzr" sourceRef="missing-tenant-reference-1" targetRef="Event_1kqdnnx" />
  </bpmn2:process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_1" name="CallActivity">
    <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="TestCallActivitiesWithReferences">
      <bpmndi:BPMNEdge id="Flow_1gizwns_di" bpmnElement="Flow_1gizwns">
        <di:waypoint x="1390" y="125" />
        <di:waypoint x="1450" y="125" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_0d9nvtl_di" bpmnElement="Flow_0d9nvtl">
        <di:waypoint x="1230" y="125" />
        <di:waypoint x="1260" y="125" />
        <di:waypoint x="1260" y="130" />
        <di:waypoint x="1290" y="130" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_1dtsr3t_di" bpmnElement="Flow_1dtsr3t">
        <di:waypoint x="1090" y="125" />
        <di:waypoint x="1110" y="125" />
        <di:waypoint x="1110" y="130" />
        <di:waypoint x="1130" y="130" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_1xkm9mi_di" bpmnElement="Flow_1xkm9mi">
        <di:waypoint x="950" y="125" />
        <di:waypoint x="990" y="125" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_1sz364i_di" bpmnElement="Flow_1sz364i">
        <di:waypoint x="810" y="125" />
        <di:waypoint x="850" y="125" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_1fkm59u_di" bpmnElement="Flow_1fkm59u">
        <di:waypoint x="670" y="125" />
        <di:waypoint x="710" y="125" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_16j0n28_di" bpmnElement="Flow_16j0n28">
        <di:waypoint x="510" y="125" />
        <di:waypoint x="570" y="125" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_1p4xoty_di" bpmnElement="Flow_1p4xoty">
        <di:waypoint x="353" y="125" />
        <di:waypoint x="410" y="125" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_1" bpmnElement="SequenceFlow_1" sourceElement="_BPMNShape_StartEvent_17" targetElement="_BPMNShape_CallActivity_2">
        <di:waypoint x="203" y="125" />
        <di:waypoint x="253" y="125" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_10tdxwm_di" bpmnElement="Flow_10tdxwm">
        <di:waypoint x="1550" y="125" />
        <di:waypoint x="1610" y="125" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_10nemiq_di" bpmnElement="Flow_10nemiq">
        <di:waypoint x="1710" y="125" />
        <di:waypoint x="1770" y="125" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_0bkhhzr_di" bpmnElement="Flow_0bkhhzr">
        <di:waypoint x="1870" y="125" />
        <di:waypoint x="1932" y="125" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="_BPMNShape_StartEvent_17" bpmnElement="StartEvent_1">
        <dc:Bounds x="167" y="107" width="36" height="36" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="158" y="143" width="55" height="14" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="_BPMNShape_CallActivity_2" bpmnElement="latest_reference_1" isExpanded="true">
        <dc:Bounds x="253" y="85" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Activity_0ev4jg6_di" bpmnElement="version_1">
        <dc:Bounds x="410" y="85" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Activity_1ydk8fl_di" bpmnElement="deployment_1">
        <dc:Bounds x="570" y="85" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Activity_14h219t_di" bpmnElement="version_tag_reference_1">
        <dc:Bounds x="710" y="85" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Activity_0fzytms_di" bpmnElement="no_reference_1">
        <dc:Bounds x="850" y="85" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Activity_1cf9pp1_di" bpmnElement="incorrect_reference_1">
        <dc:Bounds x="990" y="85" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Activity_0702piv_di" bpmnElement="cmmn_reference_1">
        <dc:Bounds x="1290" y="85" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Activity_0s6cx09_di" bpmnElement="dynamic_reference_1">
        <dc:Bounds x="1130" y="85" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Activity_0arj7g7_di" bpmnElement="tenant_reference_1">
        <dc:Bounds x="1450" y="85" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Activity_1ax22vd_di" bpmnElement="non_existing_tenant_reference_1">
        <dc:Bounds x="1610" y="85" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Activity_17canph_di" bpmnElement="missing-tenant-reference-1">
        <dc:Bounds x="1770" y="85" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Event_1kqdnnx_di" bpmnElement="Event_1kqdnnx">
        <dc:Bounds x="1932" y="107" width="36" height="36" />
      </bpmndi:BPMNShape>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</bpmn2:definitions>
